package com.yan.test2;

import java.util.LinkedList;
import java.util.List;

/**
 * @author taoge
 * @Date 2024/8/4 16:03
 * @Description
 */
public class Test2 {
    public static void main(String[] args) {
        List list = new LinkedList();
        list.add(new Work("zhang3" , 18 , 3000));
        list.add(new Work("li4" , 25 , 3500));
        list.add(new Work("wang5" , 22 , 3200));
        list.add(1 , new Work("zhao6" , 24 , 3300));
        list.remove(3);
        for (Object o : list) {
            System.out.println(o);
        }
    }
}
